package com.dhsc.controller.xtqxgl;

import com.dhsc.domain.ywzx.xtqxgl.LsqxglVo;
import com.dhsc.domain.yypt.LayuiTableVo;
import com.dhsc.domain.yypt.ResponseObject;
import com.dhsc.service.xtqxgl.ILsqxglService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName: LsqxglController
 * @Description: 临时权限管理
 * @date: 2023/11/23 13:40
 * @author: gx
 */
@Controller
@RequestMapping("/xtqxgl")
public class LsqxglController {

    @Autowired
    private ILsqxglService lsqxglService;

    /**
    * @Title: queryLsqxgl
    * @Description: 查询临时权限管理
    * @Param: lsqxglVo
    * @return: LayuiTableVo
    * @Author: gx
    * @Date: 2023/11/23 13:43
    */
    @ResponseBody
    @RequestMapping(value="/queryLsqxgl")
    public LayuiTableVo queryLsqxgl(LsqxglVo lsqxglVo){
        return lsqxglService.queryLsqxgl(lsqxglVo);
    }

    /**
    * @Title: saveLsqxgl
    * @Description: 保存临时权限管理
    * @Param: lsqxglVo
    * @return: ResponseObject
    * @Author: gx
    * @Date: 2023/11/23 13:43
    */
    @ResponseBody
    @RequestMapping(value="/saveLsqxgl")
    public ResponseObject saveLsqxgl(LsqxglVo lsqxglVo){
        return lsqxglService.saveLsqxgl(lsqxglVo);
    }

    /**
    * @Title: deleteLsqxgl
    * @Description: 删除临时权限管理
    * @Param: lsqxglVo
    * @return: ResponseObject
    * @Author: gx
    * @Date: 2023/11/23 13:43
    */
    @ResponseBody
    @RequestMapping(value="/deleteLsqxgl")
    public ResponseObject deleteLsqxgl(LsqxglVo lsqxglVo){
        return lsqxglService.deleteLsqxgl(lsqxglVo);
    }

    /**
    * @Title: queryYhmc
    * @Description: 查询用户名称
    * @Param: lsqxglVo
    * @return: ResponseObject
    * @Author: gx
    * @Date: 2023/11/23 13:43
    */
    @ResponseBody
    @RequestMapping(value="/queryYhmc")
    public ResponseObject queryYhmc(LsqxglVo lsqxglVo){
        return lsqxglService.queryYhmc(lsqxglVo);
    }

    /**
    * @Title: queryJsxz
    * @Description: 查询角色选择
    * @Param: lsqxglVo
    * @return: ResponseObject
    * @Author: gx
    * @Date: 2023/11/23 13:43
    */
    @ResponseBody
    @RequestMapping(value="/queryJsxz")
    public ResponseObject queryJsxz(LsqxglVo lsqxglVo){
        return lsqxglService.queryJsxz(lsqxglVo);
    }
}
